﻿using System;

namespace Common.Reflection.Model.Attribute
{
    /// <summary>
    /// 整型最大可用值
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class MaxValue : System.Attribute
    {
        public MaxValue(int maxvalue, string message)
        {
            this.theValue = maxvalue;
            this.message = message;
        }
        private int theValue;

        public int TheValue
        {
            get { return theValue; }
            set { theValue = value; }
        }

        private string message;
        public string Message
        {
            get { return message; }
            set { this.message = value; }
        }
    }
}
